update precompiled header list. (#1372)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Thu, 7 Nov 2024 21:09:47 +0000 (14:09 -0700)
committerGitHub <noreply@github.com>
Thu, 7 Nov 2024 21:09:47 +0000 (14:09 -0700)
CMakeLists.txt
precompiled_headers.h [deleted file]

index 27817f17e68f1b8dfe437c8b324f84d55c492a16..e6fa520bf8886dc610d85739ef9d0ee03cd77b04 100644 (file)
@@ -39,22 +39,32 @@ endif()
 
 option(GPSBABEL_ENABLE_PCH "enable precompiled headers." ON)
 if (GPSBABEL_ENABLE_PCH)
+  # This list is from defs.h.
   target_precompile_headers(gpsbabel PRIVATE
-    "$<$<COMPILE_LANGUAGE:CXX>:<algorithm$<ANGLE-R>>"
     "$<$<COMPILE_LANGUAGE:CXX>:<cmath$<ANGLE-R>>"
-    "$<$<COMPILE_LANGUAGE:CXX>:<cstdarg$<ANGLE-R>>"
     "$<$<COMPILE_LANGUAGE:CXX>:<cstddef$<ANGLE-R>>"
     "$<$<COMPILE_LANGUAGE:CXX>:<cstdint$<ANGLE-R>>"
     "$<$<COMPILE_LANGUAGE:CXX>:<cstdio$<ANGLE-R>>"
     "$<$<COMPILE_LANGUAGE:CXX>:<ctime$<ANGLE-R>>"
+    "$<$<COMPILE_LANGUAGE:CXX>:<numbers$<ANGLE-R>>"
     "$<$<COMPILE_LANGUAGE:CXX>:<optional$<ANGLE-R>>"
     "$<$<COMPILE_LANGUAGE:CXX>:<utility$<ANGLE-R>>"
+    "$<$<COMPILE_LANGUAGE:CXX>:<QByteArray$<ANGLE-R>>"
+    "$<$<COMPILE_LANGUAGE:CXX>:<QDate$<ANGLE-R>>"
+    "$<$<COMPILE_LANGUAGE:CXX>:<QTime$<ANGLE-R>>"
+    "$<$<COMPILE_LANGUAGE:CXX>:<QDateTime$<ANGLE-R>>"
     "$<$<COMPILE_LANGUAGE:CXX>:<QDebug$<ANGLE-R>>"
     "$<$<COMPILE_LANGUAGE:CXX>:<QList$<ANGLE-R>>"
-    "$<$<COMPILE_LANGUAGE:CXX>:<QScopedPointer$<ANGLE-R>>"
     "$<$<COMPILE_LANGUAGE:CXX>:<QString$<ANGLE-R>>"
+    "$<$<COMPILE_LANGUAGE:CXX>:<QStringView$<ANGLE-R>>"
     "$<$<COMPILE_LANGUAGE:CXX>:<QTextCodec$<ANGLE-R>>"
-    "$<$<COMPILE_LANGUAGE:CXX>:<QVector$<ANGLE-R>>"
+  )
+  if(${Qt6Core_VERSION} VERSION_GREATER_EQUAL 6.5)
+    target_precompile_headers(gpsbabel PRIVATE
+      "$<$<COMPILE_LANGUAGE:CXX>:<QTimeZone$<ANGLE-R>>"
+    )
+  endif()
+  target_precompile_headers(gpsbabel PRIVATE
     "$<$<COMPILE_LANGUAGE:CXX>:<Qt$<ANGLE-R>>"
     "$<$<COMPILE_LANGUAGE:CXX>:<QtGlobal$<ANGLE-R>>"
   )
diff --git a/precompiled_headers.h b/precompiled_headers.h
deleted file mode 100644 (file)
index bcf1b63..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
-    Copyright (C) 2002-2014 Robert Lipe, robertlipe+source@gpsbabel.org
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
-
- */
-
-// This list is from defs.h.  Adding other commonly used headers doesn't help.
-
-#if defined __cplusplus
-#include <algorithm>              // for sort, stable_sort
-#include <cstdarg>                // for va_list
-#include <cstddef>                // for NULL, nullptr_t, size_t
-#include <cstdint>                // for int32_t, uint32_t
-#include <cstdio>                 // for NULL, fprintf, FILE, stdout
-#include <ctime>                  // for time_t
-#include <numbers>                // for inv_pi, pi
-#include <optional>               // for optional
-#include <utility>                // for move
-
-#include <QDebug>                 // for QDebug
-#include <QList>                  // for QList, QList<>::const_reverse_iterator, QList<>::reverse_iterator
-#include <QScopedPointer>         // for QScopedPointer
-#include <QString>                // for QString
-#include <QTextCodec>             // for QTextCodec
-#include <QVector>                // for QVector
-#include <Qt>                     // for CaseInsensitive
-#include <QtGlobal>               // for foreach
-#endif